home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat1 / pathchk.z / pathchk
Text File  |  1998-10-20  |  4KB  |  133 lines

  1.  
  2.  
  3.  
  4. PPPPAAAATTTTHHHHCCCCHHHHKKKK((((1111))))                                                          PPPPAAAATTTTHHHHCCCCHHHHKKKK((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      pathchk - check pathnames
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ppppaaaatttthhhhcccchhhhkkkk [[[[----pppp ppppaaaatttthhhh]]]] _p_a_t_h_n_a_m_e...
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      _p_a_t_h_c_h_k checks that one or more pathnames are valid (that is, they could
  16.      be used to access or create a file without causing syntax errors) and
  17.      portable  (that is, no filename truncation will result).  More extensive
  18.      portability checks are provided by the _----_pppp option.
  19.  
  20.      By default, the _p_a_t_h_c_h_k utility will check each component of each
  21.      _p_a_t_h_n_a_m_e operand based on the underlying file system.   A diagnostic will
  22.      be written for each _p_a_t_h_n_a_m_e operand that:
  23.  
  24.      +o   is longer than _P_A_T_H__M_A_X bytes
  25.  
  26.      +o   contains any component longer than _N_A_M_E__M_A_X bytes in its
  27.          containing directory
  28.  
  29.      +o   contains any in a directory that is not searchable
  30.  
  31.      +o   contains any character in any component that is not valid in its
  32.          containing directory.
  33.  
  34.      The _----_pppp option will cause checks to be done on each _p_a_t_h_n_a_m_e operand and a
  35.      diagnostic message to be written if each of the _p_a_t_h_n_a_m_e operands:
  36.  
  37.      +o   is longer than __P_O_S_I_X__P_A_T_H__M_A_X bytes
  38.  
  39.      +o   contains any component longer than __P_O_S_I_X__P_A_T_H__M_A_X bytes
  40.  
  41.      +o   contains any character in any comonent that is not in the portable
  42.          filename character set.
  43.  
  44. RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEESSSS
  45.      _pppp_aaaa_tttt_hhhh_cccc_hhhh_kkkk exits with a status of greater than 0 if any errors are
  46.      encountered, otherwise it exits with status 0.
  47.  
  48.      If the _p_a_t_h_n_a_m_e argument contains a name that doesn't exist, then this is
  49.      not considered an error as long as a file could be created with this
  50.      name.
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. PPPPAAAATTTTHHHHCCCCHHHHKKKK((((1111))))                                                          PPPPAAAATTTTHHHHCCCCHHHHKKKK((((1111))))
  71.  
  72.  
  73.  
  74. EEEEXXXXAAAAMMMMPPPPLLLLEEEE
  75.      To verify that all pathnames in an imported data interchange archive are
  76.      legitimate  and unambiguous on the current system:
  77.  
  78.          _pppp_aaaa_xxxx _----_ffff _aaaa_rrrr_cccc_hhhh_iiii_vvvv_eeee _|||| _ssss_eeee_dddd _----_eeee _''''_//// _====_==== _...._****_////_ssss_////_////_////_'''' _|||| _xxxx_aaaa_rrrr_gggg_ssss _pppp_aaaa_tttt_hhhh_cccc_hhhh_kkkk
  79.          _iiii_ffff _[[[[ _$$$$_???? _----_eeee_qqqq _0000 _]]]]
  80.          _tttt_hhhh_eeee_nnnn
  81.             _pppp_aaaa_xxxx _----_rrrr _----_ffff _aaaa_rrrr_cccc_hhhh_iiii_vvvv_eeee
  82.          _eeee_llll_ssss_eeee
  83.             _eeee_cccc_hhhh_oooo _IIII_nnnn_vvvv_eeee_ssss_tttt_iiii_gggg_aaaa_tttt_eeee _pppp_rrrr_oooo_bbbb_llll_eeee_mmmm_ssss _bbbb_eeee_ffff_oooo_rrrr_eeee _iiii_mmmm_pppp_oooo_rrrr_tttt_iiii_nnnn_gggg _ffff_iiii_llll_eeee_ssss_....
  84.             _eeee_xxxx_iiii_tttt _1111
  85.          _ffff_iiii
  86.  
  87. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  88.      test(1), limits(4)
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.